//
//  UIView+x.h
//  Pods
//
//  Created by baboy on 2019/2/16.
//

#import <UIKit/UIKit.h>
#ifndef UIView_x_h
#define UIView_x_h

extern id loadViewFromNib(Class class, id owner);

@interface UIView(x)
@property(nonatomic, strong) id userInfo; //ref to a object

- (UIImage *)screenshot;
- (UIView *)showEmptyMsg:(NSString *)msg withNetIndicator:(BOOL)withIndicator icon:(NSString *)iconName withTarget:(id)target withAction:(SEL)action;
- (UIView *)showEmptyMsg:(NSString *)msg icon:(NSString *)iconName withTarget:(id)target withAction:(SEL)action;
- (void)removeEmptyIndicator;
//底部上方距离多少处显示提示问题，持续duration秒。
//- (UIView *)showTips:(NSString*)tips bottom:(CGFloat)height duration:(float) duration;
//- (UIView *)showTips:(NSString*)tips top:(CGFloat)height duration:(float) duration;
@end

#endif /* UIView_x_h */

